package cn.itsource.basic.mysuper;

import cn.itsource.basic.domain.BaseQuery;
import cn.itsource.basic.util.PageList;

import java.util.List;

public interface MyService<T> {
    void insert(T t);
    void update(T t);
    PageList<T> findPage(BaseQuery baseQuery, String key);
    void delete(Long id);
    void deleteBatch(List<Long> ids);
    List<T> findAll();
    T findOne(Long id);

}
